<!DOCTYPE html>
<html>
	<!DOCTYPE html>
	<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>湖南中医药大学心理在线测试平台</title>
		<link rel="stylesheet" href="../../layui/css/layui.css">
		<link rel="stylesheet" href="../../layui/css/index.css">
	</head>
	
	
	<body class="layui-layout-body">
		
		<div class="layui-layout layui-layout-admin">
			<div class="layui-header">
				<div class="layui-logo">
					<a href="index.html"> <img src="../../img/logo.png" width="50%" /></a>
				</div>
				<!-- 头部区域（可配合layui已有的水平导航） -->
				<ul class="layui-nav layui-layout-left">
					<li class="layui-nav-item layui-this">
						<a href="exam.html">在线测试</a>
					</li>
					<li class="layui-nav-item">
						<a href="score.html">成绩查询</a>
					</li>
					<li class="layui-nav-item">
						<a href="application.html">在线预约</a>
					</li>
					<li class="layui-nav-item">
						<a href="javascript:;">其它系统</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="">校长信箱</a>
							</dd>
							<dd>
								<a href="">心理辅导</a>
							</dd>
					
						</dl>
					</li>
				</ul>

				<ul class="layui-nav layui-layout-right" id="studentInfoView">

				</ul>

				<script id="studentInfo" type="text/html">
					<li class="layui-nav-item">
						<a href="javascript:;">
							<img src="../../img/head/head1.jpg" class="layui-nav-img">
							<font id="studentNo">{{d.name}}</font>
						</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="person.html">修改密码</a>
							</dd>
						</dl>
					<li class="layui-nav-item" lay-filter="navfilter">
						<a href="logout.html">退出登录</a>
					</li>
				</script>
			</div>

			<div class="layui-body">
				<!-- 内容主体区域 -->
				<div style="padding: 15px;">
					<fieldset class="layui-elem-field layui-field-title" style="margin-top: 5px;">
						<legend>在线测试</legend>
					</fieldset>
				
					<div class="layui-tab">
						<ul class="layui-tab-title">
							<li class="layui-this">在线测试</li>
							<li>预约考试</li>					
						</ul>
						<div class="layui-tab-content">
							<div class="layui-tab-item layui-show">
								<form class="layui-form">
									<div class="layui-form-item">
										<label class="layui-form-label">试卷种类</label>
										<div id="view2"></div>
								
									</div>
								</form>
								<hr class="layui-bg-orange">
								
								<div class="layui-row">
									<div class="layui-col-md3 ">
										<div id="countdownTime"></div>
								
									</div>
									<div class="layui-col-md6 ">
										&ensp;
									</div>
									<div class="layui-col-md3">
								
									</div>
								</div>
								<!--题目部分-->
								<form class="layui-form" id="examDetail">
									<div id="view"></div>
								</form>
								<button class="layui-btn" style="display: none;" id="submitExam">提交测试</button>								
							</div>
							
							<!--在线预约-->
							<div class="layui-tab-item">
								<form class="layui-form" id="choosePaper">
									<label class="layui-form-label">选择要预约的试卷</label>
									<div id="view3"></div>
									<br/>
										
								</form>
								<button class="layui-btn" style="" id="submitRequest">确认预约</button>	
								<input id="paperIdHidden" type="hidden" />
							</div>
						</div>
					</div>
				</div>

				<div class="layui-footer">
					<!-- 底部固定区域 -->
					© hnzyydx.autowired.cn 湖南中医药大学版权所有
				</div>
	</body>
		<script id="paper" type="text/html">
			<div class="layui-form-item" id="answer">
				{{# layui.each(d.questionList, function(index, item){ }}
				<div class="layui-card">
					<div class="layui-card-header"><b class="exam-title">{{item.title}}</b></div>
					<div class="layui-card-body">
						<div class="layui-input-block" style="margin-left: 0;">
							<input type="radio" name="question{{item.id}}" value="A" title="{{item.optionA}}"></br>
							<input type="radio" name="question{{item.id}}" value="B" title="{{item.optionB}}"></br>
							<input type="radio" name="question{{item.id}}" value="C" title="{{item.optionC}}"></br>
							<input type="radio" name="question{{item.id}}" value="D" title="{{item.optionD}}"></br>
						</div>
					</div>
				</div>
				{{# }); }}
			</div>
		</script>
		<script id="allPaper" type="text/html">
			<div class="layui-input-block">
				<select name="" lay-filter="examList">
					<option value="" selected=""></option>
					{{# layui.each(d, function(index, item){ }}
					<option value="{{item.paper.id}}">{{item.paper.title}}</option>
					{{# }); }}
				</select>
			</div>
		</script>
		
		<script id="paperList" type="text/html">
			<div class="layui-input-block">
				<select name="interest" lay-filter="paperList">
					<option value="" selected=""></option>
					{{# layui.each(d.data, function(index, item){ }}
					<option value="{{item.id}}">{{item.title}}</option>
					{{# }); }}
				</select>
			</div>
		</script>
		
		<script src="../../layui/layui.js"></script>
		<script src="../../js/page/exam.js"></script>
	</html>